import instance from "./instance";
//登录
export const getLogin = () => {
  return instance.post("/login", {
    account: "jykl", //用户名
    password: "a123456", //密码
  });
};
//列表
export const getList = (data) => {
  return instance.get("/article/list", data);
};
//新增
export const getXz = (data) => {
  return instance.post("/article", data);
};
//搜索
export const getSs = (keyword) => {
  return instance.get("/article/list", {params:{keyword}});
};
